﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ManagerViews/Manager.Master" AutoEventWireup="true" CodeBehind="Actions.aspx.cs" Inherits="BestBuy.ManagerViews.Actions" %>
<%@ Register TagPrefix="uc" TagName="MessagePanel" Src="~/UserControls/MessagePanel.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <div class="form-horizontal">
<%--
       <fieldset>
            <legend>List Bid</legend>
            <div class= "control-group">
                    <asp:TextBox ID="txtNameSearch" runat="server" ></asp:TextBox>
                     <div class="controls">
                         <asp:Button ID="btnSearch" runat="server" Text="Button" />
                     </div>
                    
                </div>
            
            <div class ="control-group">
                
                <asp:GridView ID="GridView1" runat="server">
                    <Columns>
                        <asp:BoundField HeaderText="ID" />
                        <asp:TemplateField HeaderText="Title">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Title") %>'></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Subtile">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("Subtile") %>'></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Description">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("Description") %>'></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ImageData">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("ImageData") %>'></asp:TextBox>
                            </EditItemTemplate>
                         
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Quantity">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Quantity") %>'></asp:TextBox>
                            </EditItemTemplate>
                        
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="StartPrice">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("StartPrice") %>'></asp:TextBox>
                            </EditItemTemplate>
                           
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="StartTime">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("StartTime") %>'></asp:TextBox>
                            </EditItemTemplate>
                         
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="EndTime">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("EndTime") %>'></asp:TextBox>
                            </EditItemTemplate>
                         
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="CreatedDate">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("CreatedDate") %>'></asp:TextBox>
                            </EditItemTemplate>
                           
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Status">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Status") %>'></asp:TextBox>
                            </EditItemTemplate>
                       
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                
            </div>
            
            </fieldset>
        
--%>        
  </div>
    <uc:MessagePanel ID="MessagePanel" runat="server" />
    <div class="tabbable">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tab_wait_approval" data-toggle="tab">&nbsp; Wait For Approval</a></li>
            <li><a href="#tab_open_auctions" data-toggle="tab">Open Auciton</a></li>
            <li><a href="#tab_end_auctions" data-toggle="tab">Complete Auciton</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane  active" id="tab_wait_approval">
                <asp:Label runat="server" ID="lbNoItemApproval" Text="No item" Visible="false"></asp:Label>
                <asp:GridView ID="gvWaitApproval" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" 
                    GridLines="None" Width="80%">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:TemplateField HeaderText="Description" HeaderStyle-Width="70%">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("Title") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-Width="30%">
                            <ItemTemplate>
                                <asp:Button CssClass="btn" Text="Approval" id="btnApproval" runat="server" OnClick="btnApproval_Click"
                                  OnClientClick="javascript:ShowConfirm('Are you sure?', this); return false;" ObjectId='<%# Eval("ID") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#7C6F57" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#E3EAEB" />
                    <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F8FAFA" />
                    <SortedAscendingHeaderStyle BackColor="#246B61" />
                    <SortedDescendingCellStyle BackColor="#D4DFE1" />
                    <SortedDescendingHeaderStyle BackColor="#15524A" />
                </asp:GridView>
            </div>
            
            <div class="tab-pane" id="tab_open_auctions">
                <asp:Label runat="server" ID="lbNoItemOpen" Text="No item" Visible="false"></asp:Label>
                <asp:GridView ID="gvAuctions" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" 
                    GridLines="None" Width="80%">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:HyperLinkField DataTextField="Title" HeaderText="Product Name"
                                DataNavigateUrlFields="ID" 
                                DataNavigateUrlFormatString="~/UserViews/SellerBid.aspx?AuctionID={0}"/>
                        <asp:BoundField DataField="Description" HeaderText="Description" ReadOnly="True" 
                            SortExpression="Description" />
                        <asp:BoundField DataField="Quantity" HeaderText="Quantity" ReadOnly="True" 
                            SortExpression="Quantity" />
                        <asp:BoundField DataField="EndTime" HeaderText="EndTime" ReadOnly="True" 
                            SortExpression="EndTime" />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Button CssClass="btn" Text="Block" id="btnBlock" runat="server" OnClick="btnBlock_Click"
                                  OnClientClick="javascript:ShowConfirm('Are you sure?', this); return false;" ObjectId='<%# Eval("ID") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>

                    </Columns>
                    <EditRowStyle BackColor="#7C6F57" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#E3EAEB" />
                    <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F8FAFA" />
                    <SortedAscendingHeaderStyle BackColor="#246B61" />
                    <SortedDescendingCellStyle BackColor="#D4DFE1" />
                    <SortedDescendingHeaderStyle BackColor="#15524A" />
                </asp:GridView>
            </div>
        
            <div class="tab-pane" id="tab_end_auctions">
            <asp:Label runat="server" ID="lbNoItemEnd" Text="No item" Visible="false"></asp:Label>
                    <asp:GridView ID="gvEndAuctions" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" ForeColor="#333333" 
                        GridLines="None" Width="80%">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:HyperLinkField DataTextField="Title" HeaderText="Product Name"
                                 DataNavigateUrlFields="ID" 
                                 DataNavigateUrlFormatString="~/UserViews/SellerBid.aspx?AuctionID={0}"/>
                            <asp:BoundField DataField="Subtile" HeaderText="Subtile" ReadOnly="True" 
                                SortExpression="Subtile" />
                            <asp:BoundField DataField="Description" HeaderText="Description" ReadOnly="True" 
                                SortExpression="Description" />
                            <asp:BoundField DataField="Quantity" HeaderText="Quantity" ReadOnly="True" 
                                SortExpression="Quantity" />
                            <asp:BoundField DataField="EndTime" HeaderText="EndTime" ReadOnly="True" 
                                SortExpression="EndTime" />
                        </Columns>
                        <EditRowStyle BackColor="#7C6F57" />
                        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#E3EAEB" />
                        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F8FAFA" />
                        <SortedAscendingHeaderStyle BackColor="#246B61" />
                        <SortedDescendingCellStyle BackColor="#D4DFE1" />
                        <SortedDescendingHeaderStyle BackColor="#15524A" />
                    </asp:GridView>
            
            </div>
        </div>    
    </div>
</asp:Content>
